<f:view xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:pm="http://primefaces.org/mobile"
        contentType="text/html" renderKitId="PRIMEFACES_MOBILE">

    <pm:page title="Clavo y cVanela">

        <pm:view id="viewA">
            <pm:header title="A" />
            <pm:content>
                <p:commandButton value="Go back to B" action="pm:viewB?reverse=true" />
<h:outputLink value="#viewB?reverse=true">Go back to B</h:outputLink>

            </pm:content>
        </pm:view>
        <pm:view id="viewB">
            <pm:header title="B" />
            <pm:content>
             b
            </pm:content>
        </pm:view>
    </pm:page>
</f:view>